package com.sneakxy.mybase4j.platform.provider;

import com.alibaba.dubbo.config.annotation.Service;

import com.sneakxy.mybase4j.base.provider.BaseProvider;

import com.sneakxy.mybase4j.platform.beans.Launcher;

import com.sneakxy.mybase4j.platform.provider.ILauncherProvider;

import com.sneakxy.mybase4j.platform.repository.LauncherRepository;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * 
 * @author 潜行的青衣
 * @see
 */
@Service(version = "1.0.0", interfaceClass = ILauncherProvider.class)
@org.springframework.stereotype.Service
public class LauncherProvider extends BaseProvider<Launcher, String, LauncherRepository> implements ILauncherProvider {

	@Autowired
	public LauncherProvider(LauncherRepository repository) {
		super(repository);
	}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.platform.provider.ILauncherProvider#findAllLauncherModules(java.lang.String)
	 */
	@Override
	public List<String> findAllLauncherModules(String account_id) {
		return this.getRepository().findAllLauncherModules(account_id);
	}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.platform.provider.ILauncherProvider#findAllLaunchers(java.lang.String)
	 */
	@Override
	public List<Launcher> findAllLaunchers(String account_id) {
		return this.getRepository().findAllLaunchers(account_id);
	}

}
